/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-10-10  11:31
 */
public class SavingAccount {
    public static double rate = 0.03;
    private int deposit = 3000;
    public double annualInterest() {
        return this.deposit * rate;
    }

    public double monthInterest() {
        return this.deposit * rate / 12;
    }
    public void display() {
        System.out.println("[存款额：" + deposit + " 年利息：" + annualInterest() + " 月利息:" + monthInterest() + "]");
    }
}
